#! /usr/bin/env python
from sqlite3 import dbapi2 as sqlite

conn = sqlite.connect("lotto-hist")
curs = conn.cursor()

curs.execute("select * from history order by date"  )
rows = curs.fetchall()
for row in rows:
	print row
